package com.zx.lc.test;


import dev.langchain4j.model.chat.ChatLanguageModel;
import dev.langchain4j.model.ollama.OllamaChatModel;

/***
 * @projectName langchain4j-project-1
 * @packageName com.qjc.demo
 * @author qjc
 * @description TODO
 * @Email qjc1024@aliyun.com
 * @date 2024-10-12 10:00
 **/
public class Main {

    public static void main(String[] args) {

        ChatLanguageModel model = OllamaChatModel.builder()
                .baseUrl("http://192.168.3.99:11434")
                .modelName("qwen2.5:7b")
                .build();

        String answer = model.chat("你好，你是谁？");

        System.out.println(answer);

    }
}


